<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Bdz"%>
<%@ page import="com.bci.pwtz.mysql.model.Zsbyq"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyxl"%>
<%@page import="com.bci.pwtz.service.BdzService"%>
<%@page import="com.bci.pwtz.service.ZyxlService"%>
<%@page import="com.bci.pwtz.common.util.PwtzUtils"%>
<%
	String deviceid = request.getParameter("deviceid");
	BdzService bdzService = (BdzService)SpringUtil.getBean("bdzService");
	ZyxlService zyxlService = (ZyxlService)SpringUtil.getBean("zyxlService");
	Zyxl zyxl = zyxlService.load(deviceid);
	String predevicename="";
	if(zyxl != null){
	    Bdz device=bdzService.load(zyxl.getStartsubstationcode());
		    predevicename=device.getDevicename();
	}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-系统主页</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
</head>
<script type="text/javascript">
</script>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box" scroll="no">
		<!-- 配电变压箱_begin -->
		<div class="pwsj_right_byq" scroll="no">
		<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<a class="position" href="<%=basePath %>user/z/bdzlist.jsp">变电站</a>&gt;
			<a class="position" >中压线路详情</a>
			<a class="right" href="<%=basePath %>user/z/zyxllist.jsp?deviceid=<%=zyxl.getStartsubstationcode() %>&t=<%=System.currentTimeMillis() %>">返回</a>
		</div>
			<!-- 运行参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">运行参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<%-- <ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>线路名称：</span><%=PwtzUtils.validateNull(zyxl.getDevicename())%></li>
						<li class="argument_cont_li"><span>设备编号：</span><%=PwtzUtils.validateNull(zyxl.getDevicenumber())%></li>
						<li class="argument_cont_li"><span>所属变电站名称：</span><%=PwtzUtils.validateNull(predevicename)%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>所属地市：</span><%=PwtzUtils.validateNull(zyxl.getLocalcity())%></li>	
						<li class="argument_cont_li"><span>运维单位：</span><%=PwtzUtils.validateNull(zyxl.getOperationunit())%></li>
						<li class="argument_cont_li"><span>维护班组：</span><%=PwtzUtils.validateNull(zyxl.getMaintenanceteam())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>电压等级：</span><%=PwtzUtils.validateNull(zyxl.getVoltagelevel())%></li>
						<li class="argument_cont_li"><span>设备状态：</span><%=PwtzUtils.validateNull(zyxl.getEquipmentstate())%></li>
						<li class="argument_cont_li"><span>运行状态：</span><%=PwtzUtils.validateNull(zyxl.getOperationstate())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>投运日期：</span><%=PwtzUtils.date2String(zyxl.getCommissioningdate(),"yyyy-MM-dd")%></li>
						<li class="argument_cont_li"><span>线路总长度：</span><%=PwtzUtils.validateNull(zyxl.getTotallinelength())%></li>
						<li class="argument_cont_li"><span>架空线路长度：</span><%=PwtzUtils.validateNull(zyxl.getOverheadlinelength())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>电缆线路长度：</span><%=PwtzUtils.validateNull(zyxl.getCablelength())%></li>
						<li class="argument_cont_li"><span>设备主人：</span><%=PwtzUtils.validateNull(zyxl.getEquipmentowner())%></li>
						<div class="clear"></div>
					</ul> --%>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备名称：</span><%=zyxl.getDevicename()%></li>
						<li class="argument_cont_li"><span>运行编号：</span><%=zyxl.getDevicenumber()%></li>
						<li class="argument_cont_li"><span>起点电站：</span><%=predevicename %></li>						
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>起点类型：</span><%=zyxl.getStartdevicetype()%></li>	
						<li class="argument_cont_li"><span>起点位置：</span><%=zyxl.getStartpostion()%></li>
						<li class="argument_cont_li"><span>起点开关编号：</span><%=zyxl.getStartswitchnumber()%></li>					
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>所属地市：</span><%=zyxl.getLocalcity()%></li>
						<li class="argument_cont_li"><span>电压等级：</span><%=zyxl.getVoltagelevel()%></li>
						<li class="argument_cont_li"><span>运维单位：</span><%=zyxl.getOperationunit()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>维护班组：</span><%=zyxl.getMaintenanceteam()%></li>
						<li class="argument_cont_li" style="position:relative;"><span>投运日期：</span><%=PwtzUtils.date2String(zyxl.getCommissioningdate(), "yyyy-MM-dd")%></li>
						<li class="argument_cont_li">
							<span>架设方式：</span><%=zyxl.getErectmode()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>线路性质：</span><%=zyxl.getDevicetype()%></li>
						<%
						Zyxl ssxl =null;
						if(StringUtils.isNotEmpty(zyxl.getMainlinecode()))
							ssxl = zyxlService.load(zyxl.getMainlinecode());
						String ssxlName="";
						if(ssxl!=null){
						    ssxlName = ssxl.getDevicename();
						}
						%>
						<li class="argument_cont_li">
							<span>所属主线：</span><%=ssxlName%>
						</li>
						<%
						Zyxl sjxl =null;
						if(StringUtils.isNotEmpty(zyxl.getPrelinecode()))
						    sjxl= zyxlService.load(zyxl.getPrelinecode());
						String sjxlName="";
						if(sjxl!=null){
						    sjxlName = sjxl.getDevicename();
						}
						%>
						<li class="argument_cont_li">
							<span>上级线路：</span><%=sjxlName%>
						</li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>运行状态：</span><%=zyxl.getOperationstate()%></li>	
						<li class="argument_cont_li">
							<span>架空接线方式：</span><%=zyxl.getOverheadlinklinemode()%></li>
						<li class="argument_cont_li">
							<span>电缆接线方式：</span><%=zyxl.getCablelinklinemode()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>线路总长度：</span><%=zyxl.getTotallinelength()%></li>
						<li class="argument_cont_li">
							<span>架空线路长度：</span><%=zyxl.getOverheadlinelength()%></li>
						<li class="argument_cont_li">
							<span>电缆线路长度：</span><%=zyxl.getCablelength()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>线路色标：</span><%=zyxl.getLinecoloredflag()%></li>
						<li class="argument_cont_li">
							<span>是否农网：</span><%=zyxl.getIsruralpowernetwork()%></li>
						<li class="argument_cont_li">
							<span>是否代维：</span><%=zyxl.getIsgenerationdimension()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>重要程度：</span><%=zyxl.getImportantdegree()%></li>
						<li class="argument_cont_li">
							<span>设备状态：</span><%=zyxl.getEquipmentstate()%></li>
						<li class="argument_cont_li">
							<span>地区特征：</span><%=zyxl.getRegionalcharacteristics()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>施工单位：</span><%=zyxl.getConstructionunit()%></li>
						<li class="argument_cont_li">
							<span>监理单位：</span><%=zyxl.getSupervisingunit()%></li>
						<li class="argument_cont_li">
							<span>所属调度：</span><%=zyxl.getDispatchtype()%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li">
							<span>调度单位：</span><%=zyxl.getDispatchunit()%></li>
						<li class="argument_cont_li">
							<span>设备主人：</span><%=zyxl.getEquipmentowner()%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 运行参数_end -->

			<!-- 资产参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">资产参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>资产性质：</span><%=PwtzUtils.validateNull(zyxl.getAssetsnature())%></li>
						<li class="argument_cont_li"><span>资产单位：</span><%=PwtzUtils.validateNull(zyxl.getAssetunit())%></li>
						<li class="argument_cont_li"><span>资产编号：</span><%=PwtzUtils.validateNull(zyxl.getAssetnumber())%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>工程编号：</span><%=zyxl.getProjectnumber()%></li>
						<li class="argument_cont_li"><span>工程名称：</span><%=zyxl.getProjectname()%></li>	
						<li class="argument_cont_li"><span>设备添加方式：</span><%=zyxl.getEquipmentadded() %></li>
						<div class="clear"></div>
					</ul>			
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 资产参数_end -->
		</div>	
		<!-- 配电变压箱_end -->		
	</div>
	<!-- 右侧内容_end -->
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>